@import "variables";
body {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    overflow: hidden;
}

.weditor-wrapper {
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #f0f0f0;
    div {
        box-sizing: border-box;
    }
}

.weditor-header{

}

.weditor-body {
    background-color: #f0f0f0;
    padding: 0;

    position: absolute;
    top: 90px;
    bottom: 0;
    left: 0;
    right: 0;
    overflow-x: hidden;
    overflow-y: auto;

    .ql-tooltip {
        z-index: 1000000;
    }


    .content-container {
        background-color: rgb(255, 255, 255);
        &::selection {
            background: rgba(130, 182, 255, .4);
        }

        box-shadow: 0 0 0 0.1px #d1d1d1, 0 0 1px 0.1px #ccc;
        position: relative;
        top: 20px;
        width: 595pt;
        border: 0;
        padding: 0;
        margin: 0 auto;
        margin-bottom: 60px;
        font-size: 12pt;
        .ql-container {
            font-size: 12pt;
            &.ql-snow {
                border: none;
            }
            .ql-editor {
                z-index: 30;
                text-align: justify;
                padding: 72pt 90pt;
                margin: 0;
                border: none;
                overflow-y: auto;
                overflow-x: hidden;
                min-height: 900pt;
                a:active,a:link,a:visited{
                    color: #15c;
                }

                ul[data-checked=true] > li::before{
                    content: "\e63b";
                    font-family: "docicon" !important;
                    color: #000000;
                }
                ul[data-checked=false] > li::before{
                    content: "\e63a";
                    font-family: "docicon" !important;
                    color: #000000;
                }
            }
        }
        .ql-cursors{
            .ql-cursor{
                .ql-cursor-flag {
                    z-index: 40000;
                    .ql-cursor-name{
                        font-size: 12px;
                    }
                }
                .ql-cursor-caret-container{
                    z-index: 1000;
                }
            }
        }
        .weditor-rename-input{
            border: none;
            border-bottom: 1px solid #dddddd;
            outline: none;
            height: 38px;
            line-height: 28px;
            padding: 0 90pt 10px 90pt;
            font-size: 20px;
            color:#333333;
            width: 100%;
            box-sizing: border-box;
        }
    }
}

.rc-dropdown {
    background: #FFFFFF;
    //box-shadow: 0 1px 10px 0 rgba(0, 0, 0, 0.10);
    border-radius: 4px;
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.24);
    border: none !important;
    .rc-dropdown-menu {
        border: none !important;
        border-radius: 2px;
        box-shadow:none !important;
        .rc-dropdown-menu-item{
            box-sizing: content-box !important;
            &:hover{
                background-color: rgba($primary-color,0.05);
            }
        }

    }
}

.rc-dropdown-menu-item {
    width: 130px;
    cursor: pointer;
    height: 40px;
    line-height: 40px;
    padding: 0 !important;
    padding-left: 20px !important;
    border: none !important;
    color:#333333 !important;
    font-size: 14px;
}
.rc-dropdown-menu-item-divider{
    width: 110px;
    margin-left: 20px !important;
}


.img-selection{
    position: absolute;
    top: 0px;
    width: 200px;
    height: 200px;
    border: 1px solid #0096fd;
    z-index: 999;
    display: none;
    .docs-squarehandleselectionbox-handle {
        position: absolute;
        border: 1px solid #fff;
        background-color: #0096fd;
        width: 8px;
        z-index: 999;
        height: 8px;
        font-size: 0;
    }
    .docx-selection-topleft{
        position: absolute;
        top: -4px;
        left: -4px;
    }

    .docx-selection-topright{
        position: absolute;
        top: -4px;
        right: -4px;
    }

    .docx-selection-bottomleft{
        position: absolute;
        bottom: -4px;
        left: -4px;
    }

    .docx-selection-bottomright{
        position: absolute;
        bottom: -4px;
        right: -4px;
    }
}

::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, .2);
    background-clip: padding-box;
    border: solid transparent;
    border-width: 1px 1px 1px 6px;
    min-height: 28px;
    padding: 100px 0 0;
    box-shadow: inset 1px 1px 0 rgba(0, 0, 0, .1), inset 0 -1px 0 rgba(0, 0, 0, .07);
}

//::-webkit-scrollbar-corner {
//    background: transparent;
//}
//
//::-webkit-scrollbar-button {
//    height: 0;
//    width: 0;
//}
//
//::-webkit-scrollbar {
//    height: 16px;
//    overflow: visible;
//    width: 16px;
//}

@media screen and (max-width: 900px) and (min-width: 750px) {
    .weditor-body {
        background-color: #FFFFFF;
        .content-container{
            box-shadow:none;
            width: 585pt;
            .ql-container .ql-editor{
                padding: 30pt 55pt;
            }
        }
    }
    .weditor-wrapper{
        background-color: #FFFFFF;
    }
}

@media screen and (max-width: 750px) {
    .weditor-body {
        background-color: #FFFFFF;
        .content-container{
            box-shadow:none;
            width: 700px;
            .ql-container .ql-editor{
                padding: 20pt 30px;
            }
        }
    }
    .weditor-wrapper{
        background-color: #FFFFFF;
    }
}
